import request from '@/utils/request'

export function group_listAll(data) {
    return request({
        url: '/api/group/listAll',
        method: 'post',
        data: data
    })
}
export function group_save(data) {//添加小组
    return request({
        url: '/api/group/save',
        method: 'post',
        data: data
    })
}
export function group_edit(data) {//编辑小组
    return request({
        url: '/api/group/edit',
        method: 'post',
        data: data
    })
}
export function group_findById(data) {
    return request({
        url: '/api/group/findById',
        method: 'post',
        data: data
    })
}
export function group_delete(data) {//编辑小组
    return request({
        url: '/api/group/delete',
        method: 'post',
        data: data
    })
}
export function group_findUsersById(data) {//根据小组id 查询用户列表
    return request({
        url: '/api/group/findUsersById',
        method: 'post',
        data: data
    })
}
export function groupUser_saves(data) {//根据小组id 添加users
    return request({
        url: '/api/groupUser/saves',
        method: 'post',
        data: data
    })
}
export function groupUser_deleteAll(data) {//批量删除groupUser
    return request({
        url: '/api/groupUser/deleteAll',
        method: 'post',
        data: data
    })
}
export function dept_listAll(data) {
    return request({
        url: '/api/dept/listAll',
        method: 'post',
        data: data
    })
}
export function company_findById(data) {//根据公司id获取公司信息
    return request({
        url: '/api/company/findById',
        method: 'post',
        data: data
    })
}
export function dept_edit(data) {//修改部门名称
    return request({
        url: '/api/dept/edit',
        method: 'post',
        data: data
    })
}
export function dept_delete(data) {//根据id删除Dept
    return request({
        url: '/api/dept/delete',
        method: 'post',
        data: data
    })
}
export function dept_save(data) {//添加部门
    return request({
        url: '/api/dept/save',
        method: 'post',
        data: data
    })
}
export function dept_findById(data) {
    return request({
        url: '/api/dept/findById',
        method: 'post',
        data: data
    })
}